home *** CD-ROM | disk | FTP | other *** search
- Date: Mon, 8 Nov 93 16:57:28 -0600
- From: rick@akbar.cc.utexas.edu (Rick Watson)
- Message-Id: <9311082257.AA19842@akbar.cc.utexas.edu>
- To: alt.mac.os@tazboy.jpl.nasa.gov, mint@terminator.rs.itd.umich.edu
- Subject: Process not releasing memory
-
- When I run the attached program, a second attempt to run the program
- will fail if MacMiNT is running in high memory (above 16 megabytes)
- on my mac. It works ok if MacMiNT's partition is lower in memory.
-
- It fails under Mint 1.08 and 1.09, but works ok under .095.
-
- Is this a known problem, and is there a fix?
-
- # whereami
- I am at 0xe532ac
- malloc limits are e5430c to 1490234 (6537000)
- # !!
- whereami
- Fatal error: insufficient memory
-
- Rick Watson
- The University of Texas Computation Center, Networking Services, 512/471-3241
- internet: r.watson@utexas.edu bitnet: watson@utadnx
- uucp: ...!cs.utexas.edu!ut-emx!rick span: utspan::utadnx::watson
-
- #include <memory.h>
- #include <stdio.h>
-
- main ()
- {
- int i;
- char *c;
-
- printf ("I am at 0x%x\n", &i);
-
- for (i = 10000000; i > 0; i -= 1000)
- if (c = malloc(i))
- break;
-
- if (c) {
- printf ("malloc limits are 0x%x to 0x%x (%d bytes)\n", c, c+i, i);
- free(c);
- }
- }
-
-
-
-